using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Model;

namespace ESoft.Domain.Entity
{
    /// <summary>
    /// User
    /// </summary>    
	[Table("user")]
    public partial class UserEntity : BaseFakeModel<String>
    {		    
        /// <summary>
        /// 用户名
        /// </summary>
		[Column("user_name")]
        public string UserName { get; set; }
    
        /// <summary>
        /// 姓名
        /// </summary>
		[Column("real_name")]
        public string RealName { get; set; }
    
        /// <summary>
        /// 密码
        /// </summary>
		[Column("password")]
        public string Password { get; set; }
    
        /// <summary>
        /// 盐
        /// </summary>
		[Column("salt")]
        public string Salt { get; set; }
    
        /// <summary>
        /// 手机号
        /// </summary>
		[Column("mobile_phone")]
        public string MobilePhone { get; set; }
    
        /// <summary>
        /// qq号
        /// </summary>
		[Column("qq_num")]
        public string QqNum { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("wechat_open_id")]
        public string WechatOpenId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("qq_open_id")]
        public string QqOpenId { get; set; }
    
        /// <summary>
        /// 注册时间
        /// </summary>
		[Column("reg_time")]
        public DateTime? RegTime { get; set; }
    }

	public class UserEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<UserEntity>(new EntityTypeConfiguration<UserEntity>());
        }
    }
}

